<?php #//AJAX PHP PENNY AUCTION v.1.2

#//////////////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 - 2010 Aaron Helmlinger ALL RIGHTS RESERVED  //
#//////////////////////////////////////////////////////////////////

            include "./includes/config.inc.php";
            include "./includes/currency.inc.php";
           	$query = "SELECT siteurl,adminmail,sitename FROM PHPAUCTIONXL_settings";
	$res = @mysql_query($query);
	if(!$res)
	{
		print "Error: $query<BR>".mysql_error();
		exit;
	}
	elseif(mysql_num_rows($res) > 0)
	{
		$SETTINGS = mysql_fetch_array($res);
	}


?>


 

 <? 
       
  $tabid = 2; // Change This Number To Correspond To The Tab You Want Activated
  include "tab_menu.php"; // To Change The Tabs - Modify This File
  $subtabid = "my auctions"; // Change This Variable To Correspond To Tab Sub Menu You Want To Display
  include "tab_submenu.php"; //To Change The Sub Menu - Modify This File
  include "category_menu.php"; //To Change The Category Menu - Modify This File
  $page_title_text = "$MY_AUCTION_WIN_HISTORY"; //Change This Text To The Text That You Want To Show In The Page Title Bar
  $page_title_note = ""; //Change This Text To Display A Note In The Page Title Bar Area
  include "page_title.php"; //To Change The Page Title Look - Modify This File
  ?>            
      
     <? print $tab_menu ?>  <!-- This displays the Tab Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $tab_submenu ?>  <!-- This displays the Tab Sub Menu - Delete It, If You Do Not Want It Show On The Screen    -->
     <? print $category_menu ?>  <!--  This displays the Category  Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $page_title_content_box_start; ?>  <!-- This displays the Title Bar And Content Border - Delete It, If You Do Not Want It Show On The Screen  -->
                                                 <!-- You will also need to delete the "$page_title_content_box_stop" below  -->
        
<P>


    <?
    if(is_array($AUCTIONS)) {
    	foreach($AUCTIONS as $k=>$v) 
     if ($BID[$k] > $RESERVE_PRICE[$k]) { 
      
      {
	?>
	<table width="99%" border="0" cellspacing="0" cellpadding="4" align=center>
    <tr valign="TOP" BGCOLOR=#1E5A8C>
        <td width=70%>
            <b><a href=item.php?id=<?=$k?> target=_blank>
            <FONT color=#ffffff><?=$v?></font>
            </a></b><BR> <FONT color=#ffffff size=-1>(ID: <a href=item.php?id=<?=$k?> target=_blank>
            <FONT color=#ffffff><?=$k?></font>
            </a> -
            <?=$MSG_25_0121." ".FormatDate($AUCTIONS_ENDS[$k])
            
            
            
            ?>
            ) 
            
                  
                
            </font></td><TD width=30% align=right><FONT color=#ffffff><? print $MSG_25_0006; ?>: <? print $currency_symbol;print $BID[$k]; print " ".$currency; ?></FONT>
            
            </td>
    </tr>
    </TABLE>
    
 
 <table width="99%" border="0" cellspacing="0" cellpadding="4" align=center>
    <tr valign=top>
        <td width="30%" >
        

            <FONT color=#666666 size=-1><? print $WIN_HISTORY_SELLER_INFO; ?>:</font> <B> <?=$SELLER_NICK[$k]?></B>
<BR>
    <?=(!empty($SELL_FDB[$k])?"<A HREF=\"feedback.php?auction_id=$k&id=".$SELL_FDB[$k]."\"><FONT size=-1>$MSG_207</FONT></A>":"")?>
    </TD><TD width=40%>
            <FONT color=#666666 size=-1><? print $REGISTER_PAGE_EMAIL; ?>: <a href=mailto:<?=$SETTINGS[adminmail]?>>
            <?=$SETTINGS[adminmail]?></A> <BR>
            </font>
        </td>
        
        
   
        
        <td width="30%" align=right>

  
  
      <?      if($WINLIMIT[$k] == 0)  {  ?>
  
    <?      if($AUCTIONS_PAID[$k] == 0)  {  ?>
    
<B><A HREF="auction_payment.php?id=<?=$k?>"><span class=BOLDTEXT><font color=red><? print $WIN_HISTORY_MAKE_PAYMENT; ?></font></span></A></B>       
                         
                         <? } ?>
                         
          <?      if($AUCTIONS_PAID[$k] == 1)  {    ?>
<B><A HREF=""><? print $MSG_5470; ?></A></B>       
                       <? } ?>
                          
                     <? } ?>
      
      
         <?      if($WINLIMIT[$k] == 1)  {  ?>
      
                Daily Win Limit Exceeded
                
                 <? } ?>
                 
                          <?      if($WINLIMIT[$k] == 2)  {  ?>
      
                Weekly Win Limit Exceeded
                
                 <? } ?>
                 
                                           <?      if($WINLIMIT[$k] == 3)  {  ?>
      
                Monthly Win Limit Exceeded
                
                 <? } ?>
      
        </td>
    
 
    </tr>
    
</table>

 
 
		<BR>


    <? }
    	}
    }
	?>


    <?// <!----------------------- END CONTENT HERE ------------------------->  ?>
                                                 
     <? print $page_title_content_box_stop; ?>  
   


